﻿using MgSoft.Excel;
using MgSoft.Excel.Model.Excel;
using MgSoft.Import.Excel.Model;

namespace MgSoft.Import.Excel
{
    public interface IExcelTask<TDto> : IMgTask
    {
        /// <summary>
        /// 业务逻辑校验等。
        /// </summary>
        /// <param name="dto"></param>
        /// <param name="taskManagerInfoArg"></param>
        void CheckBusiness(TDto dto, TaskManagerInfoArg taskManagerInfoArg);
        /// <summary>
        /// Excel表格中的数据格式的校验等。
        /// </summary>
        /// <param name="mgRow"></param>
        /// <param name="taskManagerInfoArg"></param>
        void CheckMgRow(MgRow mgRow, TaskManagerInfoArg taskManagerInfoArg);
        void Do(TDto dto, TaskManagerInfoArg taskManagerInfoArg);
    }
}